//
//  DDShareManager.h
//  DingDongZP
//
//  Created by Jyh on 16/5/23.
//  Copyright © 2016年 iyhjiang.com. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <WeiboSDK.h>
#import "WXApi.h"
#import <MessageUI/MessageUI.h>
#import "DDShareModel.h"

typedef void(^DDWeiboShareResultBlock)(WBSendMessageToWeiboResponse *response);

@interface DDShareManager : NSObject

@property(nonatomic, strong) DDWeiboShareResultBlock shareBlock;


+ (DDShareManager*)shareInstance;

/**
 *  分享到微信
 *
 *  @param scene       场景 0 好友  1朋友圈 2收藏
 *  @param title       标题
 *  @param description 描述
 *  @param webpageUrl  网址
 *  @param image       图片
 *  @param isVideo     是否视频
 *
 *  @return
 */
- (BOOL)shareToWeiXinWithScene:(int)scene title:(NSString *)title description:(NSString *)description webpageUrl:(NSString *)webpageUrl image:(UIImage*)image isVideo:(BOOL)isVideo;

/**
 *  分享到微博
 *
 *  @param result      分享回调
 *  @param title       标题
 *  @param description 描述
 *  @param webpageUrl  网址
 *  @param image       图片
 *  @param VC
 *  @param isVideo     是否视频
 */
- (void)shareToWeibo:(DDWeiboShareResultBlock)result title:(NSString *)title description:(NSString *)description webpageUrl:(NSString *)webpageUrl image:(UIImage*)image VC:(id)VC isVideo:(BOOL)isVideo;
@end
